/**
 * 显示用的一些东西的封装
 * Created by zhangluxin on 16/7/28.
 */
var display = {};
var viewsize = cc.winSize;
display.contentScaleFactor = cc.contentScaleFactor;
display.size = {width: viewsize.width, height: viewsize.height};
display.width = display.size.width;
display.height = display.size.height;
display.cx = display.width / 2;
display.cy = display.height / 2;
display.c_left = -display.width / 2;
display.c_right = display.width / 2;
display.c_top = display.height / 2;
display.c_bottom = -display.height / 2;
display.left = 0;
display.right = display.width;
display.top = display.height;
display.bottom = 0;
display.center = cc.p(display.cx, display.cy);
display.left_top = cc.p(display.left, display.top);
display.left_bottom = cc.p(display.left, display.bottom);
display.left_center = cc.p(display.left, display.cy);
display.right_top = cc.p(display.right, display.top);
display.right_bottom = cc.p(display.right, display.bottom);
display.right_center = cc.p(display.right, display.cy);
display.top_center = cc.p(display.cx, display.top);
display.top_bottom = cc.p(display.cx, display.bottom);

display.CENTER = cc.p(0.5, 0.5);
display.LEFT_TOP = cc.p(0, 1);
display.LEFT_BOTTOM = cc.p(0, 0);
display.LEFT_CENTER = cc.p(0, 0.5);
display.RIGHT_TOP = cc.p(1, 1);
display.RIGHT_BOTTOM = cc.p(1, 0);
display.RIGHT_CENTER = cc.p(1, 0.5);
display.CENTER_TOP = cc.p(0.5, 1);
display.CENTER_BOTTOM = cc.p(0.5, 0);

display.TEXTURES_PIXEL_FORMAT = {};
display.DEFAULT_TTF_FONT = "Arial";
display.DEFAULT_TTF_FONT_SIZE = 32;